<?php

Route::group(['middleware' => ['web','auth:admin'], 'prefix' => 'shop', 'namespace' => 'Modules\Shop\Http\Controllers'], function()
{
//    展示商城模板路由
//    Route::get('/', 'ShopController@index')->name('shop');
    Route::get('/sqqq', 'CategoryController@index')->name('shop');

//    商城资源路由展示   点击跳转商城控制界面
    Route::resource('/category','CategoryController');
});






//0716
//article-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'shop','namespace'=>"Modules\Shop\Http\Controllers"], 
function () {
    Route::resource('article', 'ArticleController')->middleware("permission:admin,resource");
});